package traits.elements

import domain.Pokemon

trait TWater extends TElement{
	
	def waterCannon(target :Pokemon){
		target.attacked(doFinalDamage(20, _), this)
	}
	
	
	def splash(target :Pokemon){
		def atack(target :Pokemon) = {
			doFinalDamage(30, target)
			this.damage(10) //"efecto" de usar splash
		}
		target.attacked(atack, this)
	}
	
	override def electricWeakness = 2
	override def fireWeakness = 0.5
	
	
	override def weaknessFactor(target :Pokemon) :Double ={
		target.waterWeakness
	}
	
}